#define _CRT_SECURE_NO_WARNINGS

#include"RBTree.h"
#include"MyMap.h"
#include"MySet.h"
void test1(const zyb::set<int>& s1)
{
	 
	zyb::set<int>::const_iterator it = s1.begin();
	while (it != s1.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;
}
void  test2(const zyb::map<string, int>& m1)
{          
	zyb::map<string, int>::const_iterator it = m1.begin();
	while (it != m1.end())
	{
		cout << it->first << ":" << it->second << endl;
		++it;
	}
	cout << endl;
}
int main()
{
	zyb::set<int> s1;
	s1.insert(1);
	s1.insert(2);
	s1.insert(3);
	s1.insert(3);
	s1.insert(5);
	s1.insert(6);
	zyb::map<string, int> m1;
	m1.insert(make_pair("zyb", 1));
	m1.insert(make_pair("jn", 1));
	m1.insert(make_pair("yw", 1));
	test1(s1);
	test2(m1);
	return 0;
}